<?php $isHomepage	= $this->countModules('subcribe'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Solomo School</title>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/eric/js/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $this->baseurl ?>/templates/eric/css/style.css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $this->baseurl ?>/templates/eric/css/eric.css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $this->baseurl ?>/templates/eric/css/mooRainbow.css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $this->baseurl ?>/templates/eric/css/skitter.css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $this->baseurl ?>/components/com_rsform/assets/themes/clean/css/style.css" />
<!--[if IE]>
        <link rel="stylesheet" type="text/css" href="css/ie.css" />
<![endif]-->
</head>
<body>

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<!--bg-->
<div class="bgTop">
<!--wrapper-->
<div id="wrapper " class="w960 mha">
    <!-- header -->
    <div class="header fl w960 mt20">
        <h1 class="logo ti9 ml100 fl mr20"><a href="#" class="dpb">Solomon school</a></h1>
		<jdoc:include type="modules" name="menu" />
    </div>
    <!-- end header -->
    <!--container-->
    <div class="container fl w960 pt20 por">
        <!-- banner -->
        <div class="banner fl ml100 mb20">
			<jdoc:include type="modules" name="slider" />
            <div class="fl social">
                <a href="#" class="fl ml5 mb5"><img src="<?php echo $this->baseurl ?>/templates/eric/images/iFb.png" alt="" /></a>
                <a href="#" class="fl"><img src="<?php echo $this->baseurl ?>/templates/eric/images/iT.png" alt="" /></a>
            </div>
        </div><div class="clear"></div>
        <!-- end banner -->
        <!-- homeIntros -->
		<?php if($isHomepage) { ?>
		<div class="homeIntros fl pr20 ml80 bg4 rounded10 pa10 mt10 mb30">           
					<jdoc:include type="component" />
		</div>			

        <!-- end homeIntros -->
        <!-- main -->
        <div class="main fl pr20 ml100 mb30">
			<jdoc:include type="modules" name="latestnews" />
			
            <jdoc:include type="modules" name="subcribe" />

        </div>
        <!-- end main -->
        <!-- .sidebar -->
        <div class="sidebar fl  mb30">
			<jdoc:include type="modules" name="facebook" />
        </div>
        <!-- end sidebar -->
         <?php } else { ?>
		 
		 
		<div class="bgRounded bg4 pt10">
        <!-- main -->
        <div class="main fl pr20 ml100">
			<jdoc:include type="component" />
        </div>
        <!-- end main -->
        <!-- .sidebar -->
		
        <div class="sidebar fl">
			<jdoc:include type="modules" name="facebook" />
            <a href="#"><img src="<?php echo $this->baseurl ?>/templates/eric/images/btnDontation.png" alt=""  class="ml5"/></a>
        </div>
        <!-- end sidebar -->
        </div>
		 <?php } ?>
		 
		 
    </div>
    <!-- end container -->
	
    <!-- footer -->
	<jdoc:include type="modules" name="footer" />
    <!-- end footer -->
</div>
<!--end wrapper-->
</div><!--end bg-->

<script type="text/javascript">
    $(document).ready(function() {
        $('.nav').find('li').each(function(index) {
            var inde = index+1;
            $(this).addClass('a'+inde);
        });
    });
</script>
</body>
</html>